//表单提交


$(function () {
	var demo = $("#findpassword").Validform({
		btnSubmit: ".form_btn",
		postonce: true,
		tiptype: 4,
		showAllError: true,
		ajaxPost: true,
		beforeSubmit: function () {
			$(".form_btn").click(function () {
				$(this).addClass("log-in");
			});
		},
		callback: function (data) {
			if (data.code > 0) {
				$(".conform").hide();
				$(".consuccess").show();
				$("#dataInfo").text("<" + data.msg + ">");
			} else {
				$(".form_btn").removeClass("log-in");
				$("#sendMail").text("再次发送");
			}
		}
	});

	demo.addRule([
		{
			ele: "#username",
			ajaxurl: validata,
			datatype: "e"
		},
		{
			ele: "#verify",
			ajaxurl: validata,
			datatype: "n4-8"
		}

	]);
});


